﻿using Omabar.BLL;
using Omabar.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Omabar.CMS.Pages
{
    public partial class CustomizedTrip : System.Web.UI.Page
    {
        protected int tailorIndex = 0;
        protected List<COUNTRY> countries;
        protected List<THEME> themes;
        protected List<Tailor> tailors;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Country_BLL countryBLL = new Country_BLL();
                countries = countryBLL.GetModels("select COUNTRY_ID,COUNTRY_NAME,BELONG FROM COUNTRY");
                if (countries == null) countries = new List<COUNTRY>();

                Theme_BLL themeBLL = new Theme_BLL();
                themes = themeBLL.GetModels("select THEME_ID,THEME_NAME,THEME_DES FROM THEME");
                if (themes == null) themes = new List<THEME>();

                Tailor_BLL tailor_BLL = new Tailor_BLL();
                tailors = tailor_BLL.GetModels("select TAILOR_ID , TAILOR_NAME,TAILOR_INFO,TAILOR_SPECIALTY,TAILOR_CASE,TAILOR_QQ,TAILOR_PHONE,TAILOR_HEAD_IMG,TAILOR_HOT   FROM TAILOR ORDER BY TAILOR_HOT DESC");
                if (tailors == null) tailors = new List<Tailor>();
                

                //Tailor_IMG_BLL tailor_IMG_BLL = new Tailor_IMG_BLL();
                
            }
        }
    }
}